package com.myStoreorderProvider.service.impl;

import com.alipay.api.AlipayApiException;
import com.myStoreorderProvider.config.Alipay;
import com.myStoreorderProvider.entity.AlipayBean;
import com.myStoreorderProvider.service.PayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author oahner
 * @create 2022-04-26 19:12
 */
@Service
public class PayServiceImpl implements PayService {

    @Autowired
    private Alipay alipay;


    @Override
    public String aliPay(AlipayBean alipayBean) throws AlipayApiException {
        return alipay.pay(alipayBean);
    }


}
